package org.jeecg.modules.order.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.core.toolkit.IdWorker;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 订单表
 * @Author: jeecg-boot
 * @Date:   2024-04-18
 * @Version: V1.0
 */
@Data
@TableName("wlhy_order")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="wlhy_order对象", description="订单表")
public class WlhyOrder implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private java.lang.String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private java.lang.String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private java.util.Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private java.lang.String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private java.util.Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private java.lang.String sysOrgCode;
	/**用户*/
	@Excel(name = "用户", width = 15)
    @ApiModelProperty(value = "用户")
    private java.lang.String userId;
	/**用户手机号*/
	@Excel(name = "用户手机号", width = 15)
    @ApiModelProperty(value = "用户手机号")
    private java.lang.String userPhone;
	/**订单号*/
	@Excel(name = "订单号", width = 15)
    @ApiModelProperty(value = "订单号")
    private java.lang.String orderNo;
	/**商户号*/
	@Excel(name = "商户号", width = 15)
    @ApiModelProperty(value = "商户号")
    private java.lang.String mchno;
	/**应用id*/
	@Excel(name = "应用id", width = 15)
    @ApiModelProperty(value = "应用id")
    private java.lang.String appId;
	/**支付方式*/
	@Excel(name = "支付方式", width = 15, dicCode = "way_code")
	@Dict(dicCode = "way_code")
    @ApiModelProperty(value = "支付方式")
    private java.lang.String wayCode;
	/**支付金额(元)*/
	@Excel(name = "支付金额(元)", width = 15)
    @ApiModelProperty(value = "支付金额(元)")
    private BigDecimal amount;
	/**客户端ip*/
	@Excel(name = "客户端ip", width = 15)
    @ApiModelProperty(value = "客户端ip")
    private java.lang.String clientIp;
	/**订单标题*/
	@Excel(name = "订单标题", width = 15)
    @ApiModelProperty(value = "订单标题")
    private java.lang.String subject;
	/**订单描述*/
	@Excel(name = "订单描述", width = 15)
    @ApiModelProperty(value = "订单描述")
    private java.lang.String body;
	/**失效时间*/
	@Excel(name = "失效时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "失效时间")
    private java.util.Date expiredTime;
	/**渠道参数*/
	@Excel(name = "渠道参数", width = 15)
    @ApiModelProperty(value = "渠道参数")
    private java.lang.String channelExtra;
	/**分账模式*/
	@Excel(name = "分账模式", width = 15, dicCode = "division_mode")
	@Dict(dicCode = "division_mode")
    @ApiModelProperty(value = "分账模式")
    private java.lang.String divisionMode;
	/**扩展参数*/
	@Excel(name = "扩展参数", width = 15)
    @ApiModelProperty(value = "扩展参数")
    private java.lang.String extParam;
	/**请求时间*/
	@Excel(name = "请求时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "请求时间")
    private java.util.Date reqTime;
	/**签名*/
	@Excel(name = "签名", width = 15)
    @ApiModelProperty(value = "签名")
    private java.lang.String sign;
	/**签名类型*/
	@Excel(name = "签名类型", width = 15, dicCode = "order_sign_type")
	@Dict(dicCode = "order_sign_type")
    @ApiModelProperty(value = "签名类型")
    private java.lang.String signType;
	/**异步通知地址*/
	@Excel(name = "异步通知地址", width = 15)
    @ApiModelProperty(value = "异步通知地址")
    private java.lang.String notifyUrl;
	/**跳转通知地址*/
	@Excel(name = "跳转通知地址", width = 15)
    @ApiModelProperty(value = "跳转通知地址")
    private java.lang.String returnUrl;
	/**订单状态*/
	@Excel(name = "订单状态", width = 15, dicCode = "order_state")
	@Dict(dicCode = "order_state")
    @ApiModelProperty(value = "订单状态")
    private java.lang.String orderState;
	/**支付数据类型*/
	@Excel(name = "支付数据类型", width = 15)
    @ApiModelProperty(value = "支付数据类型")
    private java.lang.String payDataType;
	/**发起支付数据*/
	@Excel(name = "发起支付数据", width = 15)
    @ApiModelProperty(value = "发起支付数据")
    private java.lang.String payData;
	/**渠道错误码*/
	@Excel(name = "渠道错误码", width = 15)
    @ApiModelProperty(value = "渠道错误码")
    private java.lang.String errCode;
	/**渠道错误描述*/
	@Excel(name = "渠道错误描述", width = 15)
    @ApiModelProperty(value = "渠道错误描述")
    private java.lang.String errMsg;
	/**支付成功时间*/
	@Excel(name = "支付成功时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "支付成功时间")
    private java.util.Date successTime;
	/**业务类型*/
	@Excel(name = "业务类型", width = 15, dicCode = "order_biz_type")
	@Dict(dicCode = "order_biz_type")
    @ApiModelProperty(value = "业务类型")
    private java.lang.String bizType;
	/**业务数据*/
	@Excel(name = "业务数据", width = 15)
    @ApiModelProperty(value = "业务数据")
    private java.lang.String bizData;


    public static String generatorOrderNo(){
        return IdWorker.getIdStr();
    }
}
